home *** CD-ROM | disk | FTP | other *** search
- 0#About This Gopher#about.txt#some.internet.host#70#text/plain
- 1#Departmental Publications#publications#some.internet.host#70#application/gopher
-
- Now with text/plain and application/gopher, the MIME content-type
- is redundant, and not so important. But consider:
-
- 9#My picture#connolly.gif#some.internet.host#70#image/gif
- 9#Pronunciation of my name#connolly.snd#some.internet.host#70#audio/basic
-
- So in stead of registering zillions of special characters for new
- gopher types (i, w, M, etc.) we just add a field to the Menu item,
- and use type 9 for everything besides menus and text files.
-
- The same holds for WWW references. They should include the data
- type, with text/html as the default. So I should be able to
- reference the above picture and sound in WWW:
-
- <A HREF="gopher://some.internet.host:70/9connolly.gif"
- CONTENT-TYPE="image/gif">
-
- <A HREF="gopher://some.internet.host:70/9connolly.snd"
- CONTENT-TYPE="audio/basic">
-
- This is especially important for protocols that have no implicit data
- type, like FTP. I could reference a DVI on an FTP server, and have my
- WWW client launch xdvi ala metamail:
-
- <A HREF="ftp://export.lcs.mit.edu/contrib/foo.dvi"
- content-type="application/x-dvi">
-
- Now the WWW gang has always talked about format negotiation.
- This is where the client gives the server several options
- for the data format, and the server chooses between them.
- So what's the data type of the returned information?
- We need a type that's a "union" of all the data types, right?
-
- Now we see the need for the MIME message/rfc822 content type.
- Consider the following scenario:
-
- CLIENT: GET foo HTTP-Version-2 Content-Types:
- 1000 text/html
- 900 application/postscript
- 200 text/plain
- 400 application/x-dvi
- 100 text/x-latex
- .
-
- SERVER: 0200 Message follows:
- From: author@his.host
- Message-ID: <lasting-name-for-this-document>
- Subject: ... fullfills role of HTML <TITLE> element ...
- Mime-Version: 1.0
- Content-Type: application/postscript
- Content-Transfer-Encoding: binary
-
- %!PS-Adobe-2.0
- ...
-
-
- The next possibility to consider is multimedia documents, e.g.
- one document that contains plain text, HTML text, gif images,
- sounds, etc.
-
- That's where the MIME multipart/mixed content type comes
- in. If the client is prepared to receive multipart messages,
- this is gravy.
-
- Get it?
-
- Dan
-
-
-